package com.zkn.component.office.excel.test.bo;

import java.io.Serializable;
import java.util.List;

import com.zkn.component.office.excel.annotation.ExcelDataList;
import com.zkn.component.office.excel.annotation.ExcelField;
import com.zkn.component.office.excel.annotation.ExcelSheet;

@ExcelSheet("Company")
@SuppressWarnings("serial")
public class CompanySheetData implements Serializable{
	
	@ExcelField("$title")
	private String title;
	
	@ExcelDataList
	private List<CompanyProduct> list;
	
	@ExcelField("$sum")
	private Double sum;
	
	public String getTitle() {
		return title;
	}
	public void setTitle(String title) {
		this.title = title;
	}
	public List<CompanyProduct> getList() {
		return list;
	}
	public void setList(List<CompanyProduct> list) {
		this.list = list;
	}
	public Double getSum() {
		return sum;
	}
	public void setSum(Double sum) {
		this.sum = sum;
	}

	public static class CompanyProduct{
		@ExcelField("$companyId")
		private String companyId;
		
		@ExcelField("$companyName")
		private String companyName;
		
		@ExcelField("$address")
		private String address;
		
		@ExcelField("$phone")
		private String phone;
		
		@ExcelField("$money")
		private Double money;

		public String getCompanyId() {
			return companyId;
		}

		public void setCompanyId(String companyId) {
			this.companyId = companyId;
		}

		public String getCompanyName() {
			return companyName;
		}

		public void setCompanyName(String companyName) {
			this.companyName = companyName;
		}

		public String getAddress() {
			return address;
		}

		public void setAddress(String address) {
			this.address = address;
		}

		public String getPhone() {
			return phone;
		}

		public void setPhone(String phone) {
			this.phone = phone;
		}

		public Double getMoney() {
			return money;
		}

		public void setMoney(Double money) {
			this.money = money;
		}
	}
}
